package com.ruoyi.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.mapper.MerchantShopStatusMapper;
import com.ruoyi.merchant.domain.MerchantShopStatus;
import com.ruoyi.merchant.service.IMerchantShopStatusService;

/**
 * 商家店铺状态Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-22
 */
@Service
public class MerchantShopStatusServiceImpl implements IMerchantShopStatusService 
{
    @Autowired
    private MerchantShopStatusMapper merchantShopStatusMapper;

    /**
     * 查询商家店铺状态
     * 
     * @param id 商家店铺状态主键
     * @return 商家店铺状态
     */
    @Override
    public MerchantShopStatus selectMerchantShopStatusById(Long id)
    {
        return merchantShopStatusMapper.selectMerchantShopStatusById(id);
    }

    /**
     * 查询商家店铺状态列表
     * 
     * @param merchantShopStatus 商家店铺状态
     * @return 商家店铺状态
     */
    @Override
    public List<MerchantShopStatus> selectMerchantShopStatusList(MerchantShopStatus merchantShopStatus)
    {
        return merchantShopStatusMapper.selectMerchantShopStatusList(merchantShopStatus);
    }

    /**
     * 新增商家店铺状态
     * 
     * @param merchantShopStatus 商家店铺状态
     * @return 结果
     */
    @Override
    public int insertMerchantShopStatus(MerchantShopStatus merchantShopStatus)
    {
        return merchantShopStatusMapper.insertMerchantShopStatus(merchantShopStatus);
    }

    /**
     * 修改商家店铺状态
     * 
     * @param merchantShopStatus 商家店铺状态
     * @return 结果
     */
    @Override
    public int updateMerchantShopStatus(MerchantShopStatus merchantShopStatus)
    {
        return merchantShopStatusMapper.updateMerchantShopStatus(merchantShopStatus);
    }

    /**
     * 批量删除商家店铺状态
     * 
     * @param ids 需要删除的商家店铺状态主键
     * @return 结果
     */
    @Override
    public int deleteMerchantShopStatusByIds(Long[] ids)
    {
        return merchantShopStatusMapper.deleteMerchantShopStatusByIds(ids);
    }

    /**
     * 删除商家店铺状态信息
     * 
     * @param id 商家店铺状态主键
     * @return 结果
     */
    @Override
    public int deleteMerchantShopStatusById(Long id)
    {
        return merchantShopStatusMapper.deleteMerchantShopStatusById(id);
    }
}
